package com.social.service;

import com.social.dao.ForumNotifyMapper;
import com.social.dao.model.ForumNotify;
import com.social.dao.model.ForumNotifyExample;
import com.social.daoEx.ForumNotifyMapperEx;
import com.social.daoEx.model.ForumNotifyEx;

import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ForumNotifyService {
    @Autowired
    private ForumNotifyMapper forumNotifyMapper;
    @Autowired
    private ForumNotifyMapperEx forumNotifyMapperEx;

    private static final Logger logger = Logger.getLogger(ForumNotifyService.class);

    public int countByExample(ForumNotifyExample example) {
        return this.forumNotifyMapper.countByExample(example);
    }

    public ForumNotify selectByPrimaryKey(String id) {
        return this.forumNotifyMapper.selectByPrimaryKey(id);
    }

    public List<ForumNotify> selectByExample(ForumNotifyExample example) {
        return this.forumNotifyMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.forumNotifyMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(ForumNotify record) {
        return this.forumNotifyMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(ForumNotify record) {
        return this.forumNotifyMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(ForumNotifyExample example) {
        return this.forumNotifyMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(ForumNotify record, ForumNotifyExample example) {
        return this.forumNotifyMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(ForumNotify record, ForumNotifyExample example) {
        return this.forumNotifyMapper.updateByExample(record, example);
    }

    public int insert(ForumNotify record) {
        return this.forumNotifyMapper.insert(record);
    }

    public int insertSelective(ForumNotify record) {
        return this.forumNotifyMapper.insertSelective(record);
    }

	public List<ForumNotifyEx> selectMyJoin(String userid) {
		return forumNotifyMapperEx.selectMyJoin(userid);
	}

	public List<ForumNotifyEx> selectMyNotify(Map<String, Object> map) {
		return forumNotifyMapperEx.selectMyNotify(map);
	}

	public List<ForumNotifyEx> selectMyCircleNotify(Map<String, Object> map) {
		return forumNotifyMapperEx.selectMyCircleNotify(map);
	}
}